import request from '@/utils/request'

// 查询消毒记录列表
export function listDisinfectRecord(query) {
  return request({
    url: '/busi/disinfectRecord/list',
    method: 'get',
    params: query
  })
}

// 查询消毒记录详细
export function getDisinfectRecord(id) {
  return request({
    url: '/busi/disinfectRecord/' + id,
    method: 'get'
  })
}

// 新增消毒记录
export function addDisinfectRecord(data) {
  return request({
    url: '/busi/disinfectRecord',
    method: 'post',
    data: data
  })
}

// 修改消毒记录
export function updateDisinfectRecord(data) {
  return request({
    url: '/busi/disinfectRecord',
    method: 'put',
    data: data
  })
}

// 删除消毒记录
export function delDisinfectRecord(id) {
  return request({
    url: '/busi/disinfectRecord/' + id,
    method: 'delete'
  })
}

// 导出消毒记录
export function exportDisinfectRecord(query) {
  return request({
    url: '/busi/disinfectRecord/export',
    method: 'get',
    params: query
  })
}